package com.gjr.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 呙境仁
 * @create 2021-08-24 16:50
 */
@Data
public class User {
    private Integer id;
    private String name;
    private Integer configFormId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    private Date MaxCreatedAt;
    private Date MinCreatedAt;

    public User() {
    }

    public User(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public User(Integer id, Integer configFormId, Date createdAt) {
        this.id = id;
        this.configFormId = configFormId;
        this.createdAt = createdAt;
    }
}
